<?php session_start (); if (isset($_SESSION['login']) && isset($_SESSION['mdp']) && $_SESSION['Autorisation'] == 3) {?>
<html>
<head>
<link rel="stylesheet" href="styleadmin.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<title>sans titre 1</title>
</head>
			<?php
				include '../include/Data.php';
				$Num = $_GET['id'];
				$sql = "DELETE FROM commentaire WHERE NumCommentaire='$Num'";
				$req = mysql_query($sql,$connexion);
				echo 'Commentaire supprimé<br>';
				header('Location: gerer-com.php');
                               ?>
</html>
<?php } else { header("Refresh: 0; URL=../index.php"); }?>